﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace NCLCustomerManagement.DataTransferObjects.Sale
{
    public class SaleDTO
    {
        [Key]
        public int Key
        {
            get
            {
                return Id.ToString().GetHashCode();
            }
        }
        public Guid Id { get; set; }
        public DateTime SaleDate { get; set; }
        public int CustomerId { get; set; }

        [Display(Name = "Khách hàng")]
        public string CustomerName { get; set; }
        public int ProductId { get; set; }
        
        [Display(Name = "Sản phẩm")]
        public string ProductName { get; set; }

        [Display(Name = "Số lượng")]
        public double Quantity { get; set; }

        [Display(Name = "Đơn vị")]
        public string Unit { get; set; }

        [Display(Name = "Đơn giá")]
        public decimal UnitPrice { get; set; }

        [Display(Name = "Thuế")]
        public decimal Tax { get; set; }

        [Display(Name = "Chiết khấu")]
        public decimal Discount { get; set; }
        public double AvailableDayUsed { get; set; }
        public string CreatedBy { get; set; }
        public string Notes { get; set; }
    }
}
